trigger updatecaseowner on Case (before insert) {

if(trigger.isbefore && trigger.isInsert)
{
    UpdateCaseOwner updateowner=new UpdateCaseOwner();   
    updateowner.Updatecaseownerafterinsert(trigger.new);

}

}